import { createStore } from "vuex";
import user from "./user";
import area from "./area";
import testKind from "./testKind";
import topic from "./topic";
import createPersistedState from "vuex-persistedstate";

export default createStore({
  state: {},
  mutations: {},
  actions: {},
  modules: { user, testKind, area, topic },
  plugins: [
    createPersistedState({
      key: "tokenKey",
      paths: ["user", "testKind", "area", "topic"],
    }),
  ],
});
